<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta content="名榜" http-equiv="keywords">
<meta name="description" content="名榜,wangid">
<meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<title>登录</title>
<!-- css -->
<link rel="stylesheet" type="text/css" href="css/index.css">
<link href="css/skitter.style.css" type="text/css"rel="stylesheet" />
<!-- js -->

<!-- Init Skitter -->

</head>

<body>
	<div id="app">

	<div class="content">
		<div class="wid_con loginbox">
			<div class="register_txt">
				<div class="table-conte">
					<img src="images/tuding.png"/>
					<h1>填报说明 <a href="" class="fr">政策落实填报通知</a></h1>
					<p>1、调查表适用于郑洛新国家自主创新示范区内统计本地区落实国家推广的股权和分红激励改革、科技成果处置权和收益权改革、支持创新创业的税收政策等情况。请各主体单位选择合适的调查表进行填报。</p>
					<p>2、数据调查范围按照各示范区实际管理面积计算，时间范围自2016年1月1日至2018年6月30日（具体时间以表格为准）。</p>
					<p>3、如有问题请联系河南省科学技术信息研究院科技发展研究中心。联系电话：0371-65954220  65967098。</p>
				</div>
			</div>
			<div class="login_con">
				<h1>登录</h1>
				<div class="text_box">
					<div>
						<div>
							<i><img src="images/icon01.png"></i><input type="text" v-model="login.UserName" placeholder="请输入单位全称">
						</div>
						<div>
							<i><img src="images/icon02.png"></i><input type="password" v-model="login.Password" placeholder="请输入密码">
						</div>
						<p v-if="errorIvisible" class="rule">*{{error}}</p>
						<!--<div class="yzm">
							<i><img src="images/icon03.png"></i><input type="text" placeholder="请输入验证码">
							<label><img src="images/yzm.png"></label>
						</div>-->
						<h3>
<!--							<a class="fl" href="password.html">忘记密码？</a>
-->							<a href="register.html">没有帐号？免费注册！</a>
						</h3>
						<button v-on:click="Loginpost">登 录</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<!-- footer -->
	<div class="footer">
		<p>版权所有&nbsp;&nbsp;&nbsp;Copyright © WangID驰通网络&nbsp;&nbsp;&nbsp;&nbsp;电话：400-6677-937</p>
		<p><a>京ICP备：14012449号</a>黔ICP证：黔B2-20140009号<span>京公网安备：11010602030054号</span></p>
	</div>
	</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script type="text/javascript" src="js/public.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script type="text/javascript" src="js/ComFunJS.js" ></script>
<script type="text/javascript">
	var model= new Vue({
		el:'#app',
		data:{
			login:{
				UserName:"",
				Password:"",
			},
			error:"",
			errorIvisible:false
		},
		methods:{
			Loginpost:function(){									
				$.post('/api/auth/login',{
					UserName:model.login.UserName,
					Password:model.login.Password,
				},function(r){
					if(r.error==''){
						model.errorIvisible=false;
						ComFunJS.saveToken(r.result);
						window.location.href="person.html"
					}else{
						model.errorIvisible=true;
						model.error=r.error;
					}
				})
			}
		}
	})
	
</script>
</html>